<script setup lang="ts">

</script>

<template>
  <div class="page-main">
    <el-card shadow="hover">
      <template #header>
        <div class="card-header">
          <Icon name="wac-icon:nas"/>
          <span>NSA</span>
        </div>
      </template>
      <el-image style="width: 100%; height: auto" src="/images/tools/nas_bg.webp" fit="fill" loading="lazy"/>
      <template #footer>
        <NuxtLinkLocale to="http://nas.my.d.woaicc.com:6688" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </template>
    </el-card>
    <el-card shadow="hover">
      <template #header>
        <div class="card-header">
          <Icon name="wac-icon:jellyfin"/>
          <span>Jellyfin</span>
        </div>
      </template>
      <el-image style="width: 100%; height: auto" src="/images/tools/jellyfin_bg.webp" fit="fill" loading="lazy"/>
      <template #footer>
        <NuxtLinkLocale to="http://tv.my.d.woaicc.com:6688" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </template>
    </el-card>
    <el-card shadow="hover">
      <template #header>
        <div class="card-header">
          <Icon name="wac-icon:qbittorrent"/>
          <span>Qbittorrent</span>
        </div>
      </template>
      <el-image style="width: 100%; height: auto" src="/images/tools/qbittorrent_bg.webp" fit="fill" loading="lazy"/>
      <template #footer>
        <NuxtLinkLocale to="http://qbit.my.woaicc.com" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </template>
    </el-card>
    <el-card shadow="hover">
      <template #header>
        <div class="card-header">
          <Icon name="wac-icon:download"/>
          <span>下载站</span>
        </div>
      </template>
      <el-image style="width: 100%; height: auto" src="/images/tools/download_bg.webp" fit="fill" loading="lazy"/>
      <template #footer>
        <NuxtLinkLocale to="http://dl.my.d.woaicc.com:6688/tools/" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </template>
    </el-card>
    <el-card shadow="hover">
      <template #header>
        <div class="card-header">
          <Icon name="wac-icon:abt"/>
          <span>宝塔</span>
        </div>
      </template>
      <div class="list-item">
        生成环境宝塔面板
        <NuxtLinkLocale to="http://stable.bt.my.woaicc.com/stable" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </div>
      <div class="list-item">
        开发环境宝塔面板
        <NuxtLinkLocale to="http://dev.bt.my.woaicc.com/development" target="_blank">
          点击打开
        </NuxtLinkLocale>
      </div>
    </el-card>
  </div>
</template>

<style scoped lang="scss">
.page-main {
  display: inline-flex;
  width: 100%;
  min-width: 800px;
  flex-wrap: wrap;
  padding: 20px;

  .el-card {
    width: calc((100vw - 100px) / 3);
    min-width: 233px;
    margin: 0 20px 28px 0;
    background-color: rgba(255, 255, 255, 0.8);

    &:nth-child(3n) {
      margin-right: 0;
    }

    :deep(.el-card__header) {
      background-color: rgba(0, 0, 0, 0.7);
      color: #ffffff;

      .card-header {
        display: inline-flex;

        .iconify {
          margin-right: 8px;
        }
      }
    }

    :deep(.el-card__body ) {
      padding: 0;

      .list-item {
        padding: var(--el-card-padding) var(--el-card-padding) 0 var(--el-card-padding);
      }
    }

    :deep(.el-card__footer) {
      text-align: end !important;

      a {
        color: #000000;
      }
    }
  }
}
</style>